package com.team.web;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UpLoadFileServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String method = request.getParameter("_m");
		if("save".equals(method)){
			saveFile(request,response);
		}else if("select".equals(method)){
			selectAllFiles(request,response);
		}else {
			response.sendError(404, "request a error path");
			return ;
		}
	}
	private void selectAllFiles(HttpServletRequest request,
			HttpServletResponse response) {
		
	}
	private void saveFile(HttpServletRequest request,
			HttpServletResponse response) {
		
	}

}
